spark.master yarn
# yarn cluster mode
spark.driver.memory    512m

# yarn client mode
spark.yarn.am.memory   512m

spark.executor.memory  512m

spark.yarn.jars hdfs://localhost:9000/spark-jars/*

spark.eventLog.enabled  true
spark.eventLog.dir hdfs://localhost:9000/spark-logs

# spark.master                     spark://master:7077
# spark.eventLog.enabled           true
# spark.eventLog.dir               hdfs://namenode:8021/directory
# spark.serializer                 org.apache.spark.serializer.KryoSerializer
# spark.driver.memory              5g
# spark.executor.extraJavaOptions  -XX:+PrintGCDetails -Dkey=value -Dnumbers="one two three"
#spark.driver.extraClassPath $HADOOP_CLASSPATH


